<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改药房字典注册')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ypzd-edit" th:object="${gxzyfYpzd}">
            <input name="药品ID" th:field="*{药品ID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">药品编码：</label>
                <div class="col-sm-8">
                    <input name="药品编码" th:field="*{药品编码}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">药品名称：</label>
                <div class="col-sm-8">
                    <input name="药品名称" th:field="*{药品名称}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">英文名称：</label>
                <div class="col-sm-8">
                    <input name="英文名称" th:field="*{英文名称}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">药品学名：</label>
                <div class="col-sm-8">
                    <input name="药品学名" th:field="*{药品学名}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">药品类别编码：</label>
                <div class="col-sm-8">
                    <input name="药品类别编码" th:field="*{药品类别编码}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">药品类别名称：</label>
                <div class="col-sm-8">
                    <input name="药品类别名称" th:field="*{药品类别名称}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">药品规格：</label>
                <div class="col-sm-8">
                    <input name="药品规格" th:field="*{药品规格}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">参考价格：</label>
                <div class="col-sm-8">
                    <input name="参考价格" th:field="*{参考价格}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">药品有效期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="药品有效期" th:value="${#dates.format(gxzyfYpzd.药品有效期, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="备注" th:field="*{备注}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">操作用户：</label>
                <div class="col-sm-8">
                    <input name="操作用户" th:field="*{操作用户}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">操作日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="操作日期" th:value="${#dates.format(gxzyfYpzd.操作日期, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/ypzd";
        $("#form-ypzd-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-ypzd-edit').serialize());
            }
        }

        $("input[name='药品有效期']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='操作日期']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>